.TH std::queue::push 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::queue::push \- std::queue::push

.SH Synopsis
   void push( const value_type& value );
   void push( value_type&& value );       \fI(since C++11)\fP

   Pushes the given element value to the end of the queue.

   1) Effectively calls c.push_back(value).
   2) Effectively calls c.push_back(std::move(value)).

.SH Parameters

   value - the value of the element to push

.SH Return value

   \fI(none)\fP

.SH Complexity

   Equal to the complexity of Container::push_back.

.SH Example

.SH See also

   emplace constructs element in-place at the end
   \fI(C++11)\fP \fI(public member function)\fP
   pop     removes the first element
           \fI(public member function)\fP
